package com.zzyl.nursing.task;

import com.zzyl.nursing.service.IAlertRuleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component("alertTask")
@Slf4j

public class AlertTask {

    @Autowired
    private IAlertRuleService alertRuleService;
    @Scheduled(fixedRate = 30000)
    public void deviceDataAlertFilter() {
        alertRuleService.alertFilter();
    }
}